package com.ycg.blog.mapper;

import com.ycg.blog.pojo.ArticleConfig;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
* @author lenovo
* @description 针对表【blog_article_config(文章配置信息)】的数据库操作Mapper
* @createDate 2024-03-02 12:05:04
* @Entity com.ycg.blog.pojo.ArticleConfig
*/
public interface ArticleConfigMapper extends BaseMapper<ArticleConfig> {

    /**
     * 增加浏览量
     * @param articleId
     */
    void addView(@Param("id") Integer articleId);

    /**
     * 根据articleID 新增或更新categoryId
     *
     * @param articleId
     * @param categoryId
     */
    void saveOrUpdateByArticleId(@Param("articleId") Integer articleId,
                                 @Param("categoryId") Integer categoryId);
}




